home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: Plain text[LF]
| default
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 61 72 67 68 2e 74 | 65 78 09 61 72 67 75 6d |% argh.t|ex.argum|
|00000010| 65 6e 74 20 68 61 6e 64 | 6c 65 72 0a 5c 64 6f 63 |ent hand|ler.\doc|
|00000020| 75 6d 65 6e 74 73 74 79 | 6c 65 20 5b 74 77 6f 73 |umentsty|le [twos|
|00000030| 69 64 65 2c 31 31 70 74 | 5d 7b 61 72 74 69 63 6c |ide,11pt|]{articl|
|00000040| 65 7d 0a 5c 74 69 74 6c | 65 7b 41 72 67 75 6d 65 |e}.\titl|e{Argume|
|00000050| 6e 74 20 68 61 6e 64 6c | 65 72 20 3a 20 61 72 67 |nt handl|er : arg|
|00000060| 68 7d 0a 5c 61 75 74 68 | 6f 72 7b 4a 6f 68 6e 20 |h}.\auth|or{John |
|00000070| 54 61 79 6c 6f 72 7d 20 | 20 20 20 20 20 20 20 20 |Taylor} | |
|00000080| 20 20 20 25 20 44 65 63 | 6c 61 72 65 73 20 74 68 | % Dec|lares th|
|00000090| 65 20 61 75 74 68 6f 72 | 27 73 20 6e 61 6d 65 2e |e author|'s name.|
|000000a0| 0a 5c 64 61 74 65 7b 31 | 31 74 68 20 4a 61 6e 75 |.\date{1|1th Janu|
|000000b0| 61 72 79 20 31 39 38 39 | 7d 20 20 20 20 20 20 20 |ary 1989|} |
|000000c0| 20 25 20 6e 6f 20 5c 64 | 61 74 65 20 70 72 6f 64 | % no \d|ate prod|
|000000d0| 75 63 65 73 20 74 6f 64 | 61 79 27 73 0a 5c 62 65 |uces tod|ay's.\be|
|000000e0| 67 69 6e 7b 64 6f 63 75 | 6d 65 6e 74 7d 20 20 20 |gin{docu|ment} |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 45 | | % E|
|00000100| 6e 64 20 6f 66 20 70 72 | 65 61 6d 62 6c 65 20 61 |nd of pr|eamble a|
|00000110| 6e 64 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |nd begin|ning of |
|00000120| 74 65 78 74 2e 0a 5c 6d | 61 6b 65 74 69 74 6c 65 |text..\m|aketitle|
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 20 20 20 20 20 20 25 20 | 50 72 6f 64 75 63 65 73 | % |Produces|
|00000150| 20 74 68 65 20 74 69 74 | 6c 65 2e 0a 0a 54 68 69 | the tit|le...Thi|
|00000160| 73 20 70 72 6f 76 69 64 | 65 73 20 61 20 73 69 6d |s provid|es a sim|
|00000170| 70 6c 65 20 6d 65 74 68 | 6f 64 20 6f 66 20 61 75 |ple meth|od of au|
|00000180| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 73 63 61 6e |tomatica|lly scan|
|00000190| 6e 69 6e 67 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |ning the| command|
|000001a0| 20 6c 69 6e 65 0a 74 6f | 20 65 78 74 72 61 63 74 | line.to| extract|
|000001b0| 20 66 6c 61 67 73 20 61 | 6e 64 20 74 68 65 69 72 | flags a|nd their|
|000001c0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 76 61 6c 75 | associa|ted valu|
|000001d0| 65 73 2e 20 20 54 68 65 | 20 63 61 6c 6c 69 6e 67 |es. The| calling|
|000001e0| 20 70 72 6f 67 72 61 6d | 20 6d 75 73 74 0a 63 6f | program| must.co|
|000001f0| 6e 74 61 69 6e 20 74 68 | 65 20 6c 69 6e 65 3a 5c |ntain th|e line:\|
|00000200| 5c 0a 0a 5c 76 65 72 62 | 2b 23 69 6e 63 6c 75 64 |\..\verb|+#includ|
|00000210| 65 20 22 61 72 67 68 2e | 68 22 2b 5c 5c 0a 0a 61 |e "argh.|h"+\\..a|
|00000220| 6e 64 20 6d 75 73 74 20 | 74 68 65 6e 20 69 6e 69 |nd must |then ini|
|00000230| 74 69 61 6c 69 73 65 20 | 61 20 73 74 72 75 63 74 |tialise |a struct|
|00000240| 75 72 65 20 61 72 72 61 | 79 0a 20 5c 76 65 72 62 |ure arra|y. \verb|
|00000250| 2b 61 72 67 2b 20 61 73 | 20 73 68 6f 77 6e 20 69 |+arg+ as| shown i|
|00000260| 6e 20 74 68 69 73 20 65 | 78 61 6d 70 6c 65 20 3a |n this e|xample :|
|00000270| 0a 5c 73 6d 61 6c 6c 0a | 5c 62 65 67 69 6e 7b 76 |.\small.|\begin{v|
|00000280| 65 72 62 61 74 69 6d 7d | 0a 73 74 61 74 69 63 20 |erbatim}|.static |
|00000290| 73 74 72 75 63 74 20 61 | 72 67 64 65 66 20 61 72 |struct a|rgdef ar|
|000002a0| 67 5b 5d 20 3d 20 7b 0a | 0a 66 6c 61 67 20 20 20 |g[] = {.|.flag |
|000002b0| 20 20 20 20 20 20 20 20 | 20 66 75 6e 63 74 69 6f | | functio|
|000002c0| 6e 20 20 20 20 20 20 20 | 20 74 79 70 65 20 20 20 |n | type |
|000002d0| 20 6d 61 74 63 68 0a 0a | 22 66 69 6c 65 22 2c 20 | match..|"file", |
|000002e0| 20 20 20 20 20 20 20 20 | 4e 55 4c 4c 2c 20 20 20 | |NULL, |
|000002f0| 20 20 20 20 20 20 20 20 | 27 31 27 2c 20 20 20 20 | |'1', |
|00000300| 30 2c 0a 22 76 61 6c 75 | 65 22 2c 20 20 20 20 20 |0,."valu|e", |
|00000310| 20 20 20 4e 55 4c 4c 2c | 20 20 20 20 20 20 20 20 | NULL,| |
|00000320| 20 20 20 27 32 27 2c 20 | 20 20 20 30 2c 0a 22 62 | '2', | 0,."b|
|00000330| 6f 64 79 22 2c 20 20 20 | 20 20 20 20 20 20 4e 55 |ody", | NU|
|00000340| 4c 4c 2c 20 20 20 20 20 | 20 20 20 20 20 20 27 61 |LL, | 'a|
|00000350| 27 2c 20 20 20 20 30 2c | 0a 22 61 6c 6c 22 2c 20 |', 0,|."all", |
|00000360| 20 20 20 20 20 20 20 20 | 20 4e 55 4c 4c 2c 20 20 | | NULL, |
|00000370| 20 20 20 20 20 20 20 20 | 20 27 30 27 2c 20 20 20 | | '0', |
|00000380| 20 30 2c 0a 22 67 72 6f | 75 70 22 2c 20 20 20 20 | 0,."gro|up", |
|00000390| 20 20 20 20 4e 55 4c 4c | 2c 20 20 20 20 20 20 20 | NULL|, |
|000003a0| 20 20 20 20 27 31 27 2c | 20 20 20 20 30 2c 0a 22 | '1',| 0,."|
|000003b0| 6c 6f 74 73 22 2c 20 20 | 20 20 20 20 20 20 20 4e |lots", | N|
|000003c0| 55 4c 4c 2c 20 20 20 20 | 20 20 20 20 20 20 20 27 |ULL, | '|
|000003d0| 6d 27 2c 20 20 20 20 30 | 2c 0a 22 7a 65 72 6f 22 |m', 0|,."zero"|
|000003e0| 2c 20 20 20 20 20 20 20 | 20 20 4e 55 4c 4c 2c 20 |, | NULL, |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 27 7a 27 2c 20 20 | | 'z', |
|00000400| 20 20 33 2c 0a 22 6e 69 | 6e 65 22 2c 20 20 20 20 | 3,."ni|ne", |
|00000410| 20 20 20 20 20 4e 55 4c | 4c 2c 20 20 20 20 20 20 | NUL|L, |
|00000420| 20 20 20 20 20 27 39 27 | 2c 20 20 20 20 2d 31 0a | '9'|, -1.|
|00000430| 22 68 65 6c 70 22 2c 20 | 20 20 20 20 20 20 20 20 |"help", | |
|00000440| 73 68 6f 77 5f 61 72 67 | 73 2c 20 20 20 20 20 20 |show_arg|s, |
|00000450| 27 30 27 2c 20 20 20 20 | 30 2c 0a 22 2d 22 2c 20 |'0', |0,."-", |
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 73 68 6f 77 5f | | show_|
|00000470| 61 72 67 73 2c 20 20 20 | 20 20 20 27 30 27 2c 20 |args, | '0', |
|00000480| 20 20 20 30 2c 0a 22 22 | 2c 20 20 20 20 20 20 20 | 0,.""|, |
|00000490| 20 20 20 20 20 20 4e 55 | 4c 4c 2c 20 20 20 20 20 | NU|LL, |
|000004a0| 20 20 20 20 20 20 27 3f | 27 2c 20 20 20 20 30 0a | '?|', 0.|
|000004b0| 7d 3b 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |};.\end{|verbatim|
|000004c0| 7d 0a 5c 6e 6f 72 6d 61 | 6c 73 69 7a 65 0a 74 68 |}.\norma|lsize.th|
|000004d0| 65 20 6c 61 73 74 20 65 | 6e 74 72 79 20 5c 76 65 |e last e|ntry \ve|
|000004e0| 72 62 2b 22 22 2c 20 2e | 2e 2e 2b 20 69 73 20 6d |rb+"", .|..+ is m|
|000004f0| 61 6e 64 61 74 6f 72 79 | 0a 0a 77 68 65 72 65 20 |andatory|..where |
|00000500| 3a 0a 0a 5c 62 65 67 69 | 6e 7b 74 61 62 75 6c 61 |:..\begi|n{tabula|
|00000510| 72 7d 7b 6c 6c 70 7b 33 | 2e 35 69 6e 7d 7d 0a 63 |r}{llp{3|.5in}}.c|
|00000520| 68 61 72 20 26 20 20 2a | 66 6c 61 67 20 26 20 20 |har & *|flag & |
|00000530| 20 20 20 20 20 20 20 54 | 68 65 20 63 6f 6d 6d 61 | T|he comma|
|00000540| 6e 64 20 6c 69 6e 65 20 | 66 6c 61 67 20 74 6f 20 |nd line |flag to |
|00000550| 62 65 20 70 72 65 63 65 | 64 65 64 20 62 79 20 46 |be prece|ded by F|
|00000560| 4c 41 47 43 48 41 52 0a | 20 20 20 20 20 20 20 20 |LAGCHAR.| |
|00000570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000580| 28 20 60 2d 27 20 62 79 | 20 64 65 66 61 75 6c 74 |( `-' by| default|
|00000590| 20 29 2e 20 5c 5c 0a 0a | 76 6f 69 64 20 26 20 20 | ). \\..|void & |
|000005a0| 28 2a 66 75 6e 63 74 69 | 6f 6e 29 28 29 20 26 20 |(*functi|on)() & |
|000005b0| 54 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 6e 79 20 |The name| of any |
|000005c0| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 62 65 20 63 |function| to be c|
|000005d0| 61 6c 6c 65 64 20 61 75 | 74 6f 6d 61 74 69 63 61 |alled au|tomatica|
|000005e0| 6c 6c 79 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |lly. | |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 6f | | if o|
|00000600| 6e 65 20 6f 72 20 6d 6f | 72 65 20 69 6e 73 74 61 |ne or mo|re insta|
|00000610| 6e 63 65 73 20 6f 66 20 | 74 68 65 20 66 6c 61 67 |nces of |the flag|
|00000620| 20 6f 63 63 75 72 20 6f | 6e 20 74 68 65 0a 20 20 | occur o|n the. |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000640| 20 20 20 20 20 20 63 6f | 6d 6d 61 6e 64 20 6c 69 | co|mmand li|
|00000650| 6e 65 2e 20 20 50 61 72 | 61 6d 65 74 65 72 73 20 |ne. Par|ameters |
|00000660| 61 72 67 63 2c 61 72 67 | 76 20 61 6e 64 20 61 20 |argc,arg|v and a |
|00000670| 70 6f 69 6e 74 65 72 0a | 09 09 09 74 6f 20 74 68 |pointer.|...to th|
|00000680| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 66 6c |e approp|riate fl|
|00000690| 61 67 20 73 74 72 75 63 | 74 75 72 65 20 61 72 65 |ag struc|ture are|
|000006a0| 20 70 61 73 73 65 64 0a | 20 20 20 20 20 20 20 20 | passed.| |
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006c0| 69 6e 20 74 68 65 20 63 | 61 6c 6c 20 28 2a 66 75 |in the c|all (*fu|
|000006d0| 6e 63 74 69 6f 6e 29 28 | 29 2e 20 20 49 6e 20 74 |nction)(|). In t|
|000006e0| 68 65 20 65 78 61 6d 70 | 6c 65 0a 20 20 20 20 20 |he examp|le. |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 20 61 62 6f 76 65 | 2c 20 5c 76 65 72 62 2b | above|, \verb+|
|00000710| 73 68 6f 77 5f 61 72 67 | 73 2b 20 28 70 61 72 74 |show_arg|s+ (part|
|00000720| 20 6f 66 20 61 72 67 68 | 29 20 69 73 20 63 61 6c | of argh|) is cal|
|00000730| 6c 65 64 20 69 66 0a 20 | 20 20 20 20 20 20 20 20 |led if. | |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00000750| 69 74 68 65 72 20 60 2d | 2d 5c 2c 2d 2d 27 20 6f |ither `-|-\,--' o|
|00000760| 72 20 60 2d 2d 68 65 6c | 70 27 20 69 73 20 6f 6e |r `--hel|p' is on|
|00000770| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00000780| 65 2e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 54 68 65 20 66 | | The f|
|000007a0| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 73 20 61 72 |unction |calls ar|
|000007b0| 65 20 69 6e 76 6f 6b 65 | 64 20 77 69 74 68 20 5c |e invoke|d with \|
|000007c0| 76 65 72 62 2b 63 61 6c | 6c 5f 61 72 67 73 28 29 |verb+cal|l_args()|
|000007d0| 2b 2e 20 5c 5c 0a 0a 63 | 68 61 72 20 26 20 20 74 |+. \\..c|har & t|
|000007e0| 79 70 65 20 26 20 20 20 | 20 20 20 20 20 20 20 53 |ype & | S|
|000007f0| 70 65 63 69 66 69 65 73 | 20 74 68 65 20 74 79 70 |pecifies| the typ|
|00000800| 65 20 6f 66 20 66 6c 61 | 67 20 61 6e 64 20 74 68 |e of fla|g and th|
|00000810| 65 20 77 61 79 20 7a 65 | 72 6f 20 6f 72 20 6d 6f |e way ze|ro or mo|
|00000820| 72 65 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |re. | |
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 61 72 67 75 6d | | argum|
|00000840| 65 6e 74 73 20 61 72 65 | 20 74 6f 20 62 65 20 61 |ents are| to be a|
|00000850| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 69 |ssociate|d with i|
|00000860| 74 2e 20 5c 5c 0a 0a 26 | 26 20 20 20 20 20 20 20 |t. \\..&|& |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 30 | | 0|
|00000880| 20 3a 20 6c 6f 6e 65 20 | 28 20 6e 6f 20 61 73 73 | : lone |( no ass|
|00000890| 6f 63 2e 20 76 61 6c 75 | 65 20 29 20 5c 5c 0a 26 |oc. valu|e ) \\.&|
|000008a0| 26 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |& | |
|000008b0| 20 20 20 20 20 20 20 31 | 20 3a 20 76 61 6c 75 65 | 1| : value|
|000008c0| 64 20 3a 20 61 64 6a 61 | 63 65 6e 74 20 6f 72 20 |d : adja|cent or |
|000008d0| 6e 65 78 74 20 5c 5c 0a | 26 26 20 20 20 20 20 20 |next \\.|&& |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008f0| 32 20 3a 20 61 73 20 76 | 20 62 75 74 20 74 61 6b |2 : as v| but tak|
|00000900| 65 73 20 32 20 61 72 67 | 73 20 5c 5c 0a 26 26 20 |es 2 arg|s \\.&& |
|00000910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000920| 20 20 20 20 20 33 20 3a | 20 61 73 20 76 20 62 75 | 3 :| as v bu|
|00000930| 74 20 74 61 6b 65 73 20 | 33 20 61 72 67 73 20 5c |t takes |3 args \|
|00000940| 5c 0a 0a 26 26 20 20 20 | 20 20 20 20 20 20 20 20 |\..&& | |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 5c 6c 64 6f 74 | | \ldot|
|00000960| 73 5c 20 65 74 63 2e 20 | 28 75 70 20 74 6f 20 39 |s\ etc. |(up to 9|
|00000970| 29 20 5c 5c 0a 0a 26 26 | 20 20 20 20 20 20 20 20 |) \\..&&| |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 20 | | m |
|00000990| 3a 20 31 20 6f 72 20 6d | 6f 72 65 20 28 20 75 70 |: 1 or m|ore ( up|
|000009a0| 20 74 6f 20 6e 65 78 74 | 20 66 6c 61 67 20 29 20 | to next| flag ) |
|000009b0| 5c 5c 0a 26 26 20 20 20 | 20 20 20 20 20 20 20 20 |\\.&& | |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 7a 20 3a 20 61 | | z : a|
|000009d0| 73 20 6d 20 62 75 74 20 | 7a 65 72 6f 20 61 72 67 |s m but |zero arg|
|000009e0| 73 20 61 6c 6c 6f 77 65 | 64 20 5c 5c 0a 0a 26 26 |s allowe|d \\..&&|
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 20 20 20 20 61 20 | 3a 20 76 61 6c 75 65 64 | a |: valued|
|00000a10| 20 3a 20 61 64 6a 61 63 | 65 6e 74 20 74 6f 20 66 | : adjac|ent to f|
|00000a20| 6c 61 67 20 28 6f 6e 6c | 79 29 20 5c 5c 0a 26 26 |lag (onl|y) \\.&&|
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a40| 20 20 20 20 20 20 6e 20 | 3a 20 76 61 6c 75 65 64 | n |: valued|
|00000a50| 20 3a 20 6e 65 78 74 20 | 61 72 67 75 6d 65 6e 74 | : next |argument|
|00000a60| 20 28 6f 6e 6c 79 29 20 | 5c 5c 0a 0a 26 26 20 20 | (only) |\\..&& |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a80| 20 20 20 20 3f 20 3a 20 | 64 75 6d 6d 79 20 6c 61 | ? : |dummy la|
|00000a90| 73 74 20 65 6e 74 72 79 | 20 28 20 63 61 6e 20 62 |st entry| ( can b|
|00000aa0| 65 20 61 6e 79 20 63 68 | 61 72 61 63 74 65 72 20 |e any ch|aracter |
|00000ab0| 29 20 5c 5c 0a 0a 0a 69 | 6e 74 20 26 20 20 20 6d |) \\...i|nt & m|
|00000ac0| 61 74 63 68 20 26 20 20 | 20 20 20 20 20 20 20 55 |atch & | U|
|00000ad0| 73 65 64 20 69 6e 74 65 | 72 6e 61 6c 6c 79 20 62 |sed inte|rnally b|
|00000ae0| 79 20 7b 5c 65 6d 20 61 | 72 67 68 5c 2f 7d 20 74 |y {\em a|rgh\/} t|
|00000af0| 6f 20 63 61 6c 63 75 6c | 61 74 65 20 74 68 65 20 |o calcul|ate the |
|00000b00| 6d 69 6e 69 6d 75 6d 0a | 20 20 20 20 20 20 20 20 |minimum.| |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b20| 6c 65 6e 67 74 68 20 6e | 65 65 64 65 64 20 74 6f |length n|eeded to|
|00000b30| 20 75 6e 69 71 75 65 6c | 79 20 69 64 65 6e 74 69 | uniquel|y identi|
|00000b40| 66 79 20 65 61 63 68 20 | 66 6c 61 67 2e 0a 20 20 |fy each |flag.. |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b60| 20 20 20 20 20 20 46 6c | 61 67 73 20 61 72 65 20 | Fl|ags are |
|00000b70| 73 6f 72 74 65 64 20 28 | 20 75 73 69 6e 67 20 71 |sorted (| using q|
|00000b80| 75 69 63 6b 20 73 6f 72 | 74 20 29 20 66 6f 72 20 |uick sor|t ) for |
|00000b90| 74 68 69 73 20 2d 2d 2d | 20 0a 20 20 20 20 20 20 |this ---| . |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 20 74 68 65 20 73 6f | 72 74 20 73 65 71 75 65 | the so|rt seque|
|00000bc0| 6e 63 65 20 69 73 20 61 | 6c 73 6f 20 75 73 65 64 |nce is a|lso used|
|00000bd0| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 69 6e 20 5c | to disp|lay in \|
|00000be0| 76 65 72 62 2b 73 68 6f | 77 5f 61 72 67 73 2b 2e |verb+sho|w_args+.|
|00000bf0| 20 5c 5c 0a 0a 26 26 20 | 20 20 20 20 20 20 20 20 | \\..&& | |
|00000c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 55 73 65 | | Use|
|00000c10| 72 73 20 6d 61 79 20 6f | 76 65 72 72 69 64 65 20 |rs may o|verride |
|00000c20| 74 68 69 73 20 63 61 6c | 63 75 6c 61 74 69 6f 6e |this cal|culation|
|00000c30| 20 62 79 20 70 75 74 74 | 69 6e 67 20 61 0a 20 20 | by putt|ing a. |
|00000c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c50| 20 20 20 20 20 20 6e 6f | 6e 2d 7a 65 72 6f 20 76 | no|n-zero v|
|00000c60| 61 6c 75 65 20 69 6e 20 | 74 68 65 20 6d 61 74 63 |alue in |the matc|
|00000c70| 68 20 66 69 65 6c 64 3a | 20 5c 5c 0a 0a 26 26 20 |h field:| \\..&& |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c90| 20 20 20 20 20 20 20 24 | 3e 30 24 20 69 6e 64 69 | $|>0$ indi|
|00000ca0| 63 61 74 65 73 20 6d 61 | 74 63 68 20 6c 65 6e 67 |cates ma|tch leng|
|00000cb0| 74 68 20 74 6f 20 75 73 | 65 20 5c 5c 0a 26 26 20 |th to us|e \\.&& |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cd0| 20 20 20 20 20 20 20 24 | 2d 31 24 20 69 6e 64 69 | $|-1$ indi|
|00000ce0| 63 61 74 65 73 20 65 78 | 61 63 74 20 6d 61 74 63 |cates ex|act matc|
|00000cf0| 68 20 72 65 71 75 69 72 | 65 64 20 5c 5c 0a 0a 5c |h requir|ed \\..\|
|00000d00| 65 6e 64 7b 74 61 62 75 | 6c 61 72 7d 0a 0a 54 68 |end{tabu|lar}..Th|
|00000d10| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 69 |e comman|d line i|
|00000d20| 73 20 70 72 6f 63 65 73 | 73 65 64 20 62 79 20 74 |s proces|sed by t|
|00000d30| 68 65 20 63 61 6c 6c 20 | 5c 76 65 72 62 2b 73 63 |he call |\verb+sc|
|00000d40| 61 6e 5f 61 72 67 73 28 | 61 72 67 63 2c 61 72 67 |an_args(|argc,arg|
|00000d50| 76 29 2b 2e 0a 0a 49 66 | 20 41 44 4a 41 52 47 53 |v)+...If| ADJARGS|
|00000d60| 20 69 73 20 73 65 74 20 | 74 6f 20 54 52 55 45 2c | is set |to TRUE,|
|00000d70| 20 61 72 67 75 6d 65 6e | 74 73 20 6d 61 79 20 61 | argumen|ts may a|
|00000d80| 70 70 65 61 72 20 61 64 | 6a 61 63 65 6e 74 20 74 |ppear ad|jacent t|
|00000d90| 6f 20 74 68 65 20 66 6c | 61 67 0a 69 66 20 74 68 |o the fl|ag.if th|
|00000da0| 65 72 65 20 69 73 20 6e | 6f 20 61 6d 62 69 67 75 |ere is n|o ambigu|
|00000db0| 69 74 79 20 2d 2d 2d 20 | 69 2e 65 2e 2c 20 74 68 |ity --- |i.e., th|
|00000dc0| 65 20 77 68 6f 6c 65 20 | 66 6c 61 67 20 69 73 20 |e whole |flag is |
|00000dd0| 65 6e 74 65 72 65 64 20 | 6f 6e 20 74 68 65 0a 63 |entered |on the.c|
|00000de0| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 2e 20 20 41 6c |ommand l|ine. Al|
|00000df0| 74 65 72 6e 61 74 69 76 | 65 6c 79 2c 20 28 20 65 |ternativ|ely, ( e|
|00000e00| 76 65 6e 20 69 66 20 41 | 44 4a 41 52 47 53 20 3d |ven if A|DJARGS =|
|00000e10| 3d 20 46 41 4c 53 45 20 | 29 2c 20 74 68 65 20 28 |= FALSE |), the (|
|00000e20| 66 69 72 73 74 29 0a 76 | 61 6c 75 65 20 74 6f 20 |first).v|alue to |
|00000e30| 62 65 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |be assoc|iated wi|
|00000e40| 74 68 20 61 20 66 6c 61 | 67 20 6d 61 79 20 62 65 |th a fla|g may be|
|00000e50| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 77 69 74 68 | introdu|ced with|
|00000e60| 20 45 51 55 43 48 41 52 | 20 28 60 3d 27 20 62 79 | EQUCHAR| (`=' by|
|00000e70| 0a 64 65 66 61 75 6c 74 | 29 2e 20 20 49 6e 20 74 |.default|). In t|
|00000e80| 68 65 20 6c 61 74 74 65 | 72 20 63 61 73 65 2c 20 |he latte|r case, |
|00000e90| 6f 6e 6c 79 20 73 75 66 | 66 69 63 69 65 6e 74 20 |only suf|ficient |
|00000ea0| 6f 66 20 74 68 65 20 66 | 6c 61 67 20 74 6f 20 75 |of the f|lag to u|
|00000eb0| 6e 69 71 75 65 6c 79 0a | 64 69 73 74 69 6e 67 75 |niquely.|distingu|
|00000ec0| 69 73 68 20 69 74 20 66 | 72 6f 6d 20 6f 74 68 65 |ish it f|rom othe|
|00000ed0| 72 20 66 6c 61 67 73 20 | 6e 65 65 64 20 62 65 20 |r flags |need be |
|00000ee0| 73 75 70 70 6c 69 65 64 | 2e 20 20 54 68 69 73 20 |supplied|. This |
|00000ef0| 69 73 20 61 6c 73 6f 20 | 74 72 75 65 20 77 68 65 |is also |true whe|
|00000f00| 6e 0a 74 68 65 20 28 66 | 69 72 73 74 29 20 76 61 |n.the (f|irst) va|
|00000f10| 6c 75 65 20 66 6f 6c 6c | 6f 77 73 20 61 73 20 74 |lue foll|ows as t|
|00000f20| 68 65 20 6e 65 78 74 20 | 63 6f 6d 6d 61 6e 64 20 |he next |command |
|00000f30| 6c 69 6e 65 20 61 72 67 | 75 6d 65 6e 74 20 28 69 |line arg|ument (i|
|00000f40| 2e 65 2e 2c 20 73 65 70 | 61 72 61 74 65 64 0a 62 |.e., sep|arated.b|
|00000f50| 79 20 77 68 69 74 65 20 | 73 70 61 63 65 29 2e 0a |y white |space)..|
|00000f60| 4f 4e 45 43 48 41 52 41 | 52 47 53 20 6d 61 79 20 |ONECHARA|RGS may |
|00000f70| 62 65 20 73 65 74 20 74 | 6f 20 54 52 55 45 20 69 |be set t|o TRUE i|
|00000f80| 6e 20 6f 72 64 65 72 20 | 74 6f 20 61 6c 6c 6f 77 |n order |to allow|
|00000f90| 20 66 6c 61 67 73 20 74 | 6f 20 62 65 20 6d 61 74 | flags t|o be mat|
|00000fa0| 63 68 65 64 0a 62 79 20 | 61 20 73 69 6e 67 6c 65 |ched.by |a single|
|00000fb0| 20 63 68 61 72 61 63 74 | 65 72 20 66 6f 6c 6c 6f | charact|er follo|
|00000fc0| 77 65 64 20 62 79 20 61 | 6e 20 61 64 6a 61 63 65 |wed by a|n adjace|
|00000fd0| 6e 74 20 61 72 67 75 6d | 65 6e 74 20 61 73 20 6c |nt argum|ent as l|
|00000fe0| 6f 6e 67 20 61 73 20 74 | 68 65 0a 73 69 6e 67 6c |ong as t|he.singl|
|00000ff0| 65 20 63 68 61 72 61 63 | 74 65 72 20 69 73 20 61 |e charac|ter is a|
|00001000| 6e 20 75 6e 61 6d 62 69 | 67 75 6f 75 73 20 61 62 |n unambi|guous ab|
|00001010| 62 72 65 76 69 61 74 69 | 6f 6e 20 6f 66 20 74 68 |breviati|on of th|
|00001020| 65 20 66 6c 61 67 2e 20 | 20 41 6e 79 20 6f 74 68 |e flag. | Any oth|
|00001030| 65 72 0a 70 61 72 74 69 | 61 6c 20 6d 61 74 63 68 |er.parti|al match|
|00001040| 69 6e 67 20 77 6f 75 6c | 64 20 63 61 75 73 65 20 |ing woul|d cause |
|00001050| 63 6f 6e 66 75 73 69 6f | 6e 20 61 6e 64 20 69 73 |confusio|n and is|
|00001060| 20 64 69 73 61 6c 6c 6f | 77 65 64 2e 5c 5c 5b 32 | disallo|wed.\\[2|
|00001070| 65 78 5d 0a 0a 54 6f 20 | 69 6c 6c 75 73 74 72 61 |ex]..To |illustra|
|00001080| 74 65 20 3a 20 28 20 66 | 6c 61 67 20 73 61 6d 70 |te : ( f|lag samp|
|00001090| 6c 65 20 29 0a 0a 5c 66 | 6f 6f 74 6e 6f 74 65 73 |le )..\f|ootnotes|
|000010a0| 69 7a 65 0a 5c 62 65 67 | 69 6e 7b 74 61 62 75 6c |ize.\beg|in{tabul|
|000010b0| 61 72 7d 7b 6c 6c 7d 0a | 20 20 20 20 20 20 20 20 |ar}{ll}.| |
|000010c0| 2d 73 61 6d 70 6c 65 61 | 72 67 20 20 20 20 20 20 |-samplea|rg |
|000010d0| 20 20 20 20 20 20 20 20 | 26 63 6f 6d 70 6c 65 74 | |&complet|
|000010e0| 65 20 6d 61 74 63 68 20 | 28 61 64 6a 29 20 6f 6b |e match |(adj) ok|
|000010f0| 20 20 28 20 75 6e 6c 65 | 73 73 20 21 41 44 4a 41 | ( unle|ss !ADJA|
|00001100| 52 47 53 20 29 5c 5c 0a | 20 20 20 20 20 20 20 20 |RGS )\\.| |
|00001110| 2d 73 61 6d 70 6c 65 20 | 61 72 67 20 20 20 20 20 |-sample |arg |
|00001120| 20 20 20 20 20 20 20 20 | 26 63 6f 6d 70 6c 65 74 | |&complet|
|00001130| 65 20 6d 61 74 63 68 20 | 28 6e 65 78 74 29 20 6f |e match |(next) o|
|00001140| 6b 5c 5c 0a 20 20 20 20 | 20 20 20 20 2d 73 61 6d |k\\. | -sam|
|00001150| 70 6c 65 3d 61 72 67 20 | 20 20 20 20 20 20 20 20 |ple=arg | |
|00001160| 20 20 20 20 26 63 6f 6d | 70 6c 65 74 65 20 6d 61 | &com|plete ma|
|00001170| 74 63 68 20 77 69 74 68 | 20 3d 20 28 61 64 6a 29 |tch with| = (adj)|
|00001180| 20 6f 6b 5c 5c 0a 20 20 | 20 20 20 20 20 20 2d 73 | ok\\. | -s|
|00001190| 61 6d 70 6c 65 3d 20 61 | 72 67 20 20 20 20 20 20 |ample= a|rg |
|000011a0| 20 20 20 20 20 20 26 63 | 6f 6d 70 6c 65 74 65 20 | &c|omplete |
|000011b0| 6d 61 74 63 68 20 77 69 | 74 68 20 3d 20 28 6e 65 |match wi|th = (ne|
|000011c0| 78 74 29 5c 5c 0a 20 20 | 20 20 20 20 20 20 20 20 |xt)\\. | |
|000011d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011e0| 20 20 20 20 20 20 26 2d | 2d 20 65 72 72 6f 72 20 | &-|- error |
|000011f0| 2d 2d 20 60 60 76 61 6c | 75 65 20 73 68 6f 75 6c |-- ``val|ue shoul|
|00001200| 64 20 62 65 20 61 64 6a | 61 63 65 6e 74 20 74 6f |d be adj|acent to|
|00001210| 20 60 3d 27 5c 2c 27 27 | 5c 5c 0a 0a 20 20 20 20 | `='\,''|\\.. |
|00001220| 20 20 20 20 2d 73 61 6d | 61 72 67 20 20 20 20 20 | -sam|arg |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 26 69 6e 63 | | &inc|
|00001240| 6f 6d 70 6c 65 74 65 20 | 6d 61 74 63 68 20 28 61 |omplete |match (a|
|00001250| 64 6a 29 5c 5c 0a 20 20 | 20 20 20 20 20 20 20 20 |dj)\\. | |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001270| 20 20 20 20 20 20 26 2d | 2d 20 65 72 72 6f 72 20 | &-|- error |
|00001280| 2d 2d 20 60 60 61 6d 62 | 69 67 75 6f 75 73 20 6d |-- ``amb|iguous m|
|00001290| 61 74 63 68 27 27 5c 5c | 0a 20 20 20 20 20 20 20 |atch''\\|. |
|000012a0| 20 2d 73 61 6d 20 61 72 | 67 20 20 20 20 20 20 20 | -sam ar|g |
|000012b0| 20 20 20 20 20 20 20 20 | 20 26 69 6e 63 6f 6d 70 | | &incomp|
|000012c0| 6c 65 74 65 20 6d 61 74 | 63 68 20 28 6e 65 78 74 |lete mat|ch (next|
|000012d0| 29 20 6f 6b 5c 5c 0a 20 | 20 20 20 20 20 20 20 2d |) ok\\. | -|
|000012e0| 73 61 6d 3d 61 72 67 20 | 20 20 20 20 20 20 20 20 |sam=arg | |
|000012f0| 20 20 20 20 20 20 20 26 | 69 6e 63 6f 6d 70 6c 65 | &|incomple|
|00001300| 74 65 20 6d 61 74 63 68 | 20 77 69 74 68 20 3d 61 |te match| with =a|
|00001310| 72 67 20 6f 6b 5c 5c 0a | 20 20 20 20 20 20 20 20 |rg ok\\.| |
|00001320| 2d 73 61 6d 3d 20 61 72 | 67 20 20 20 20 20 20 20 |-sam= ar|g |
|00001330| 20 20 20 20 20 20 20 20 | 26 69 6e 63 6f 6d 70 6c | |&incompl|
|00001340| 65 74 65 20 6d 61 74 63 | 68 20 77 69 74 68 20 3d |ete matc|h with =|
|00001350| 20 28 6e 65 78 74 29 20 | 61 72 67 5c 5c 0a 20 20 | (next) |arg\\. |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 26 2d | | &-|
|00001380| 2d 20 65 72 72 6f 72 20 | 2d 2d 20 60 60 76 61 6c |- error |-- ``val|
|00001390| 75 65 20 73 68 6f 75 6c | 64 20 62 65 20 61 64 6a |ue shoul|d be adj|
|000013a0| 61 63 65 6e 74 20 74 6f | 20 60 3d 27 5c 2c 27 27 |acent to| `='\,''|
|000013b0| 5c 5c 0a 20 20 20 20 20 | 20 20 20 2d 73 61 72 67 |\\. | -sarg|
|000013c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013d0| 20 20 20 26 20 73 69 6e | 67 6c 65 20 63 68 61 72 | & sin|gle char|
|000013e0| 61 63 74 65 72 20 6d 61 | 74 63 68 20 28 61 64 6a |acter ma|tch (adj|
|000013f0| 29 20 6f 6b 5c 5c 0a 20 | 20 20 20 20 20 20 20 20 |) ok\\. | |
|00001400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001410| 20 20 20 20 20 20 20 26 | 20 70 72 6f 76 69 64 65 | &| provide|
|00001420| 64 20 4f 4e 45 43 48 41 | 52 41 52 47 53 20 3d 3d |d ONECHA|RARGS ==|
|00001430| 20 54 52 55 45 20 5c 26 | 5c 26 20 5c 5c 0a 20 20 | TRUE \&|\& \\. |
|00001440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 26 20 | | & |
|00001460| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 20 6f 74 68 |there ar|e no oth|
|00001470| 65 72 20 60 73 27 20 66 | 6c 61 67 73 20 5c 5c 0a |er `s' f|lags \\.|
|00001480| 0a 5c 65 6e 64 7b 74 61 | 62 75 6c 61 72 7d 0a 5c |.\end{ta|bular}.\|
|00001490| 6e 6f 72 6d 61 6c 73 69 | 7a 65 0a 0a 4c 69 6e 6b |normalsi|ze..Link|
|000014a0| 65 64 20 6c 69 73 74 73 | 20 61 72 65 20 67 65 6e |ed lists| are gen|
|000014b0| 65 72 61 74 65 64 20 66 | 6f 72 20 65 61 63 68 20 |erated f|or each |
|000014c0| 66 6c 61 67 2c 20 61 63 | 63 75 6d 75 6c 61 74 69 |flag, ac|cumulati|
|000014d0| 6e 67 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |ng comma|nd line |
|000014e0| 61 72 67 75 6d 65 6e 74 | 73 0a 69 6e 20 63 6f 6d |argument|s.in com|
|000014f0| 6d 61 6e 64 20 6c 69 6e | 65 20 73 65 71 75 65 6e |mand lin|e sequen|
|00001500| 63 65 2e 20 20 57 68 65 | 72 65 20 61 20 66 6c 61 |ce. Whe|re a fla|
|00001510| 67 20 74 61 6b 65 73 20 | 7a 65 72 6f 20 61 72 67 |g takes |zero arg|
|00001520| 75 6d 65 6e 74 73 2c 20 | 74 68 65 20 6c 69 73 74 |uments, |the list|
|00001530| 20 69 74 65 6d 0a 70 6f | 69 6e 74 73 20 74 6f 20 | item.po|ints to |
|00001540| 74 68 65 20 66 6c 61 67 | 2d 69 6e 76 6f 6b 69 6e |the flag|-invokin|
|00001550| 67 20 61 72 67 75 6d 65 | 6e 74 20 28 20 65 2e 67 |g argume|nt ( e.g|
|00001560| 2e 2c 20 60 2d 61 6c 6c | 27 20 69 6e 20 74 68 65 |., `-all|' in the|
|00001570| 20 65 78 61 6d 70 6c 65 | 20 61 62 6f 76 65 20 29 | example| above )|
|00001580| 2e 0a 4f 74 68 65 72 77 | 69 73 65 2c 20 65 61 63 |..Otherw|ise, eac|
|00001590| 68 20 6c 69 6e 6b 20 69 | 74 65 6d 20 70 6f 69 6e |h link i|tem poin|
|000015a0| 74 73 20 74 6f 20 74 68 | 65 20 6e 65 78 74 20 61 |ts to th|e next a|
|000015b0| 72 67 76 2d 73 70 65 63 | 69 66 69 65 64 20 76 61 |rgv-spec|ified va|
|000015c0| 6c 75 65 2c 20 61 66 74 | 65 72 20 74 68 65 0a 61 |lue, aft|er the.a|
|000015d0| 64 6a 61 63 65 6e 74 20 | 70 61 72 74 20 68 61 73 |djacent |part has|
|000015e0| 20 62 65 65 6e 20 73 6b | 69 70 70 65 64 20 28 20 | been sk|ipped ( |
|000015f0| 69 66 20 6e 65 63 65 73 | 73 61 72 79 20 29 2e 20 |if neces|sary ). |
|00001600| 20 41 20 60 63 6f 75 6e | 74 27 20 66 69 65 6c 64 | A `coun|t' field|
|00001610| 20 63 6f 6e 74 61 69 6e | 73 0a 74 68 65 20 74 6f | contain|s.the to|
|00001620| 74 61 6c 20 61 72 67 75 | 6d 65 6e 74 73 20 74 61 |tal argu|ments ta|
|00001630| 6b 65 6e 20 66 72 6f 6d | 20 74 68 65 20 63 6f 6d |ken from| the com|
|00001640| 6d 61 6e 64 20 6c 69 6e | 65 2e 20 20 54 68 75 73 |mand lin|e. Thus|
|00001650| 20 69 66 20 61 20 33 2d | 76 61 6c 75 65 64 20 66 | if a 3-|valued f|
|00001660| 6c 61 67 20 0a 77 65 72 | 65 20 64 65 63 6c 61 72 |lag .wer|e declar|
|00001670| 65 64 20 66 6f 75 72 20 | 74 69 6d 65 73 20 6f 6e |ed four |times on|
|00001680| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00001690| 65 2c 20 61 6e 64 20 61 | 6c 6c 20 65 78 70 65 63 |e, and a|ll expec|
|000016a0| 74 65 64 20 61 72 67 75 | 6d 65 6e 74 73 20 77 65 |ted argu|ments we|
|000016b0| 72 65 0a 70 72 65 73 65 | 6e 74 2c 20 63 6f 75 6e |re.prese|nt, coun|
|000016c0| 74 20 77 6f 75 6c 64 20 | 62 65 20 73 65 74 20 74 |t would |be set t|
|000016d0| 6f 20 31 32 2e 20 20 54 | 68 65 20 66 75 6e 63 74 |o 12. T|he funct|
|000016e0| 69 6f 6e 20 5c 76 65 72 | 62 2b 63 68 61 72 20 2a |ion \ver|b+char *|
|000016f0| 6e 65 78 74 5f 61 72 67 | 28 66 6c 61 67 2c 61 72 |next_arg|(flag,ar|
|00001700| 67 76 29 2b 0a 72 65 74 | 75 72 6e 73 20 65 61 63 |gv)+.ret|urns eac|
|00001710| 68 20 61 72 67 75 6d 65 | 6e 74 20 69 6e 20 74 75 |h argume|nt in tu|
|00001720| 72 6e 20 66 6f 72 20 61 | 20 73 70 65 63 69 66 69 |rn for a| specifi|
|00001730| 65 64 20 66 6c 61 67 2c | 20 4e 55 4c 4c 20 69 66 |ed flag,| NULL if|
|00001740| 20 74 68 65 72 65 20 61 | 72 65 20 6e 6f 20 6d 6f | there a|re no mo|
|00001750| 72 65 2e 0a 54 6f 20 64 | 69 73 74 69 6e 67 75 69 |re..To d|istingui|
|00001760| 73 68 20 61 72 67 75 6d | 65 6e 74 73 20 67 6c 65 |sh argum|ents gle|
|00001770| 61 6e 65 64 20 66 72 6f | 6d 20 64 69 66 66 65 72 |aned fro|m differ|
|00001780| 65 6e 74 20 73 6f 75 72 | 63 65 73 2c 20 69 2e 65 |ent sour|ces, i.e|
|00001790| 2e 2c 20 74 68 65 20 0a | 63 6f 6d 6d 61 6e 64 20 |., the .|command |
|000017a0| 6c 69 6e 65 20 61 6e 64 | 20 61 6e 20 69 6e 70 75 |line and| an inpu|
|000017b0| 74 20 66 69 6c 65 2c 20 | 61 20 66 69 65 6c 64 20 |t file, |a field |
|000017c0| 7b 5c 65 6d 20 61 72 67 | 73 72 63 5c 2f 7d 20 69 |{\em arg|src\/} i|
|000017d0| 73 20 6d 61 69 6e 74 61 | 69 6e 65 64 20 69 6e 0a |s mainta|ined in.|
|000017e0| 74 68 65 20 6c 69 6e 6b | 20 72 65 63 6f 72 64 20 |the link| record |
|000017f0| 74 6f 20 72 65 63 6f 72 | 64 20 74 68 65 20 73 65 |to recor|d the se|
|00001800| 74 74 69 6e 67 20 6f 66 | 20 7b 5c 65 6d 20 61 72 |tting of| {\em ar|
|00001810| 67 73 6f 75 72 63 65 5c | 2f 7d 20 69 6e 20 66 6f |gsource\|/} in fo|
|00001820| 72 63 65 20 0a 77 68 65 | 6e 20 74 68 65 20 74 68 |rce .whe|n the th|
|00001830| 65 20 61 72 67 75 6d 65 | 6e 74 20 77 61 73 20 6f |e argume|nt was o|
|00001840| 62 74 61 69 6e 65 64 2e | 0a 0a 41 6e 79 20 63 6f |btained.|..Any co|
|00001850| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 61 72 67 75 6d |mmand li|ne argum|
|00001860| 65 6e 74 73 20 74 68 61 | 74 20 64 6f 20 6e 6f 74 |ents tha|t do not|
|00001870| 20 6d 61 74 63 68 20 61 | 6e 79 20 66 6c 61 67 20 | match a|ny flag |
|00001880| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 73 20 61 |specific|ations a|
|00001890| 63 63 75 6d 75 6c 61 74 | 65 0a 69 6e 20 74 68 65 |ccumulat|e.in the|
|000018a0| 20 6c 69 73 74 20 70 6f | 69 6e 74 65 64 20 74 6f | list po|inted to|
|000018b0| 20 62 79 20 74 68 65 20 | 64 75 6d 6d 79 20 66 6c | by the |dummy fl|
|000018c0| 61 67 20 22 22 2e 20 20 | 54 68 65 73 65 20 61 72 |ag "". |These ar|
|000018d0| 65 20 72 65 74 72 69 65 | 76 65 64 20 77 69 74 68 |e retrie|ved with|
|000018e0| 20 0a 5c 76 65 72 62 2b | 6e 65 78 74 5f 61 72 67 | .\verb+|next_arg|
|000018f0| 28 22 22 2c 61 72 67 76 | 29 2b 20 63 61 6c 6c 73 |("",argv|)+ calls|
|00001900| 2e 5c 5c 5b 32 65 78 5d | 0a 0a 45 72 72 6f 72 73 |.\\[2ex]|..Errors|
|00001910| 20 61 72 65 20 72 65 70 | 6f 72 74 65 64 20 61 73 | are rep|orted as|
|00001920| 20 66 6f 6c 6c 6f 77 73 | 20 3a 0a 0a 5c 66 6f 6f | follows| :..\foo|
|00001930| 74 6e 6f 74 65 73 69 7a | 65 0a 5c 62 65 67 69 6e |tnotesiz|e.\begin|
|00001940| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 22 61 72 67 68 |{verbati|m}."argh|
|00001950| 21 20 3a 22 20 20 20 66 | 6f 6c 6c 6f 77 65 64 20 |! :" f|ollowed |
|00001960| 62 79 20 3a 0a 0a 20 20 | 20 20 20 20 20 20 22 75 |by :.. | "u|
|00001970| 6e 6b 6e 6f 77 6e 20 65 | 72 72 6f 72 5c 6e 22 2c |nknown e|rror\n",|
|00001980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|000019b0| 20 30 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 0 */. | "f|
|000019c0| 6c 61 67 20 25 73 20 6e | 6f 74 20 6b 6e 6f 77 6e |lag %s n|ot known|
|000019d0| 5c 6e 22 2c 20 20 20 20 | 20 20 20 20 20 20 20 20 |\n", | |
|000019e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001a00| 20 31 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 1 */. | "f|
|00001a10| 6c 61 67 20 25 73 20 61 | 6d 62 69 67 75 6f 75 73 |lag %s a|mbiguous|
|00001a20| 20 6d 61 74 63 68 5c 6e | 22 2c 20 20 20 20 20 20 | match\n|", |
|00001a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001a50| 20 32 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 69 | 2 */. | "i|
|00001a60| 6e 76 61 6c 69 64 20 74 | 79 70 65 20 66 6f 72 20 |nvalid t|ype for |
|00001a70| 66 6c 61 67 20 25 73 20 | 20 2d 20 66 69 78 20 73 |flag %s | - fix s|
|00001a80| 6f 75 72 63 65 5c 6e 22 | 2c 20 20 20 20 20 20 20 |ource\n"|, |
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001aa0| 20 33 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 6c | 3 */. | "l|
|00001ab0| 69 6d 69 74 20 6f 66 20 | 25 73 20 61 72 67 75 6d |imit of |%s argum|
|00001ac0| 65 6e 74 20 69 6e 73 74 | 61 6e 63 65 73 20 2d 20 |ent inst|ances - |
|00001ad0| 61 62 6f 72 74 65 64 5c | 6e 22 2c 20 20 20 20 20 |aborted\|n", |
|00001ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001af0| 20 34 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 4 */. | "f|
|00001b00| 6c 61 67 20 25 73 20 76 | 61 6c 75 65 20 73 68 6f |lag %s v|alue sho|
|00001b10| 75 6c 64 20 62 65 20 61 | 64 6a 61 63 65 6e 74 20 |uld be a|djacent |
|00001b20| 74 6f 20 27 3d 27 5c 6e | 22 2c 20 20 20 20 20 20 |to '='\n|", |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001b40| 20 35 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 5 */. | "f|
|00001b50| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 61 64 6a |lag %s (|type adj|
|00001b60| 61 63 65 6e 74 29 20 6e | 6f 74 20 66 6f 6c 6c 6f |acent) n|ot follo|
|00001b70| 77 65 64 20 62 79 20 76 | 61 6c 75 65 5c 6e 22 2c |wed by v|alue\n",|
|00001b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001b90| 20 36 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 6 */. | "f|
|00001ba0| 6c 61 67 20 25 73 20 2d | 20 61 64 6a 61 63 65 6e |lag %s -| adjacen|
|00001bb0| 74 20 61 72 67 75 6d 65 | 6e 74 73 20 6e 6f 74 20 |t argume|nts not |
|00001bc0| 61 6c 6c 6f 77 65 64 20 | 77 69 74 68 6f 75 74 20 |allowed |without |
|00001bd0| 27 3d 27 5c 6e 22 2c 20 | 20 20 20 20 20 20 2f 2a |'='\n", | /*|
|00001be0| 20 37 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 7 */. | "f|
|00001bf0| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 6e 65 78 |lag %s (|type nex|
|00001c00| 74 29 20 6d 75 73 74 20 | 75 73 65 20 6e 65 78 74 |t) must |use next|
|00001c10| 20 61 72 67 75 6d 65 6e | 74 5c 6e 22 2c 20 20 20 | argumen|t\n", |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001c30| 20 38 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 8 */. | "f|
|00001c40| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 6e 65 78 |lag %s (|type nex|
|00001c50| 74 29 20 68 61 73 20 6e | 6f 20 6e 65 78 74 20 61 |t) has n|o next a|
|00001c60| 72 67 75 6d 65 6e 74 5c | 6e 22 2c 20 20 20 20 20 |rgument\|n", |
|00001c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001c80| 20 39 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 | 9 */. | "f|
|00001c90| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 30 20 76 |lag %s (|type 0 v|
|00001ca0| 61 6c 75 65 64 20 29 20 | 73 68 6f 75 6c 64 20 6e |alued ) |should n|
|00001cb0| 6f 74 20 68 61 76 65 20 | 76 61 6c 75 65 5c 6e 22 |ot have |value\n"|
|00001cc0| 2c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a |, | /*|
|00001cd0| 31 30 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 |10 */. | "f|
|00001ce0| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 25 73 20 |lag %s (|type %s |
|00001cf0| 76 61 6c 75 65 64 29 20 | 68 61 73 20 6e 6f 20 76 |valued) |has no v|
|00001d00| 61 6c 75 65 25 73 5c 6e | 22 2c 20 20 20 20 20 20 |alue%s\n|", |
|00001d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001d20| 31 31 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 |11 */. | "f|
|00001d30| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 25 73 20 |lag %s (|type %s |
|00001d40| 76 61 6c 75 65 64 29 20 | 68 61 73 20 6f 6e 6c 79 |valued) |has only|
|00001d50| 20 25 73 20 76 61 6c 75 | 65 25 73 5c 6e 22 2c 20 | %s valu|e%s\n", |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001d70| 31 32 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 66 |12 */. | "f|
|00001d80| 6c 61 67 20 25 73 20 28 | 74 79 70 65 20 31 20 6f |lag %s (|type 1 o|
|00001d90| 72 20 6d 6f 72 65 29 20 | 6d 75 73 74 20 68 61 76 |r more) |must hav|
|00001da0| 65 20 61 74 20 6c 65 61 | 73 74 20 6f 6e 65 20 76 |e at lea|st one v|
|00001db0| 61 6c 75 65 5c 6e 22 2c | 20 20 20 20 20 20 2f 2a |alue\n",| /*|
|00001dc0| 31 33 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 64 |13 */. | "d|
|00001dd0| 75 70 6c 69 63 61 74 65 | 20 66 6c 61 67 20 25 73 |uplicate| flag %s|
|00001de0| 20 69 6e 20 74 61 62 6c | 65 20 2d 20 66 69 78 20 | in tabl|e - fix |
|00001df0| 73 6f 75 72 63 65 5c 6e | 22 2c 20 20 20 20 20 20 |source\n|", |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001e10| 31 34 20 2a 2f 0a 20 20 | 20 20 20 20 20 20 22 61 |14 */. | "a|
|00001e20| 6d 62 69 67 75 6f 75 73 | 20 66 6c 61 67 73 20 25 |mbiguous| flags %|
|00001e30| 73 20 61 6e 64 20 25 73 | 20 2d 20 66 69 78 20 73 |s and %s| - fix s|
|00001e40| 6f 75 72 63 65 5c 6e 22 | 20 20 20 20 20 20 20 20 |ource\n"| |
|00001e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a | | /*|
|00001e60| 31 35 20 2a 2f 0a 5c 65 | 6e 64 7b 76 65 72 62 61 |15 */.\e|nd{verba|
|00001e70| 74 69 6d 7d 0a 5c 6e 6f | 72 6d 61 6c 73 69 7a 65 |tim}.\no|rmalsize|
|00001e80| 0a 0a 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |..The fo|llowing |
|00001e90| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 61 72 65 20 |definiti|ons are |
|00001ea0| 6d 61 64 65 20 3a 0a 0a | 5c 66 6f 6f 74 6e 6f 74 |made :..|\footnot|
|00001eb0| 65 73 69 7a 65 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |esize.\b|egin{ver|
|00001ec0| 62 61 74 69 6d 7d 0a 0a | 23 64 65 66 69 6e 65 20 |batim}..|#define |
|00001ed0| 41 52 47 48 56 45 52 09 | 09 22 61 72 67 68 20 76 |ARGHVER.|."argh v|
|00001ee0| 2e 20 31 2e 31 22 09 09 | 2f 2a 20 56 65 72 73 69 |. 1.1"..|/* Versi|
|00001ef0| 6f 6e 20 6e 75 6d 62 65 | 72 20 2a 2f 0a 23 64 65 |on numbe|r */.#de|
|00001f00| 66 69 6e 65 20 4d 41 58 | 41 52 47 53 09 09 35 30 |fine MAX|ARGS..50|
|00001f10| 09 09 09 2f 2a 20 4d 61 | 78 69 6d 75 6d 20 61 72 |.../* Ma|ximum ar|
|00001f20| 67 75 6d 65 6e 74 20 69 | 6e 73 74 61 6e 63 65 73 |gument i|nstances|
|00001f30| 20 70 72 6f 76 69 64 65 | 64 20 66 6f 72 20 2a 2f | provide|d for */|
|00001f40| 0a 23 64 65 66 69 6e 65 | 20 4d 41 58 46 4c 41 47 |.#define| MAXFLAG|
|00001f50| 53 09 35 30 09 09 09 2f | 2a 20 4d 61 78 69 6d 75 |S.50.../|* Maximu|
|00001f60| 6d 20 6e 75 6d 62 65 72 | 20 6f 66 20 66 6c 61 67 |m number| of flag|
|00001f70| 73 0a 09 09 09 09 09 09 | 6e 65 65 64 65 64 20 74 |s.......|needed t|
|00001f80| 6f 20 73 69 7a 65 20 73 | 6f 72 74 69 6e 67 20 61 |o size s|orting a|
|00001f90| 72 72 61 79 20 61 72 67 | 73 6f 72 74 5b 5d 20 2a |rray arg|sort[] *|
|00001fa0| 2f 0a 23 64 65 66 69 6e | 65 09 46 4c 41 47 43 48 |/.#defin|e.FLAGCH|
|00001fb0| 41 52 09 27 2d 27 09 09 | 09 2f 2a 20 69 6e 74 72 |AR.'-'..|./* intr|
|00001fc0| 6f 64 75 63 65 73 20 61 | 20 66 6c 61 67 20 6f 6e |oduces a| flag on|
|00001fd0| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 2a 2f | command| line */|
|00001fe0| 0a 23 64 65 66 69 6e 65 | 09 45 51 55 43 48 41 52 |.#define|.EQUCHAR|
|00001ff0| 09 09 27 3d 27 09 09 09 | 2f 2a 20 74 6f 20 73 65 |..'='...|/* to se|
|00002000| 70 61 72 61 74 65 20 61 | 20 70 61 72 74 69 61 6c |parate a| partial|
|00002010| 20 62 75 74 0a 09 09 09 | 09 09 09 75 6e 61 6d 62 | but....|...unamb|
|00002020| 69 67 75 6f 75 73 20 66 | 6c 61 67 20 66 72 6f 6d |iguous f|lag from|
|00002030| 20 69 74 73 20 76 61 6c | 75 65 20 2a 2f 0a 23 64 | its val|ue */.#d|
|00002040| 65 66 69 6e 65 09 4d 41 | 58 46 4c 41 47 4c 45 4e |efine.MA|XFLAGLEN|
|00002050| 09 33 30 09 09 09 2f 2a | 20 6d 61 78 20 66 6c 61 |.30.../*| max fla|
|00002060| 67 20 6c 65 6e 67 74 68 | 20 2a 2f 0a 23 64 65 66 |g length| */.#def|
|00002070| 69 6e 65 20 56 41 4c 49 | 44 54 59 50 45 53 09 22 |ine VALI|DTYPES."|
|00002080| 30 31 32 33 34 35 36 37 | 38 39 61 6d 6e 7a 22 09 |01234567|89amnz".|
|00002090| 2f 2a 20 61 6c 6c 6f 77 | 65 64 20 66 6c 61 67 20 |/* allow|ed flag |
|000020a0| 74 79 70 65 73 20 2a 2f | 0a 23 64 65 66 69 6e 65 |types */|.#define|
|000020b0| 09 41 44 4a 41 52 47 53 | 09 09 54 52 55 45 09 09 |.ADJARGS|..TRUE..|
|000020c0| 09 2f 2a 20 61 6c 6c 6f | 77 20 61 64 6a 61 63 65 |./* allo|w adjace|
|000020d0| 6e 74 20 61 72 67 73 20 | 2a 2f 0a 23 64 65 66 69 |nt args |*/.#defi|
|000020e0| 6e 65 09 4f 4e 45 43 48 | 41 52 41 52 47 53 09 46 |ne.ONECH|ARARGS.F|
|000020f0| 41 4c 53 45 09 09 09 2f | 2a 20 61 6c 6c 6f 77 20 |ALSE.../|* allow |
|00002100| 75 6e 61 6d 62 69 67 75 | 6f 75 73 20 6f 6e 65 2d |unambigu|ous one-|
|00002110| 62 79 74 65 20 66 6c 61 | 67 73 20 77 69 74 68 6f |byte fla|gs witho|
|00002120| 75 74 20 45 51 55 43 48 | 41 52 20 2a 2f 0a 23 64 |ut EQUCH|AR */.#d|
|00002130| 65 66 69 6e 65 09 5a 45 | 52 4f 43 48 45 43 4b 09 |efine.ZE|ROCHECK.|
|00002140| 46 41 4c 53 45 09 09 09 | 2f 2a 20 74 65 73 74 20 |FALSE...|/* test |
|00002150| 74 79 70 65 20 27 30 27 | 20 61 67 61 69 6e 73 74 |type '0'| against|
|00002160| 20 6e 65 78 74 20 61 72 | 67 20 2a 2f 0a 0a 5c 65 | next ar|g */..\e|
|00002170| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 5c 6e 6f |nd{verba|tim}.\no|
|00002180| 72 6d 61 6c 73 69 7a 65 | 0a 0a 4e 6f 74 65 20 74 |rmalsize|..Note t|
|00002190| 68 61 74 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 20 |hat an a|rgument |
|000021a0| 69 6e 73 74 61 6e 63 65 | 20 69 73 20 74 68 65 20 |instance| is the |
|000021b0| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 20 6f 66 20 6f |combinat|ion of o|
|000021c0| 6e 65 20 66 6c 61 67 20 | 77 69 74 68 20 6f 6e 65 |ne flag |with one|
|000021d0| 20 6f 66 20 74 68 65 0a | 61 73 73 6f 63 69 61 74 | of the.|associat|
|000021e0| 65 64 20 76 61 6c 75 65 | 73 20 28 20 61 64 6a 61 |ed value|s ( adja|
|000021f0| 63 65 6e 74 20 6f 72 20 | 6e 6f 74 20 29 20 2d 2d |cent or |not ) --|
|00002200| 2d 20 6f 72 20 61 6e 20 | 60 6f 74 68 65 72 27 20 |- or an |`other' |
|00002210| 61 72 67 75 6d 65 6e 74 | 2e 5c 5c 5b 32 65 78 5d |argument|.\\[2ex]|
|00002220| 0a 0a 5c 76 65 72 62 2b | 73 68 6f 77 5f 61 72 67 |..\verb+|show_arg|
|00002230| 73 28 29 2b 20 64 69 73 | 70 6c 61 79 73 20 61 72 |s()+ dis|plays ar|
|00002240| 67 68 20 61 6e 61 6c 79 | 73 69 73 20 6f 66 20 63 |gh analy|sis of c|
|00002250| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 3a 0a 0a 5c |ommand l|ine :..\|
|00002260| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00002270| 25 70 72 6f 67 72 61 6d | 20 61 61 61 20 62 62 62 |%program| aaa bbb|
|00002280| 20 63 63 63 20 2d 2d 20 | 2d 70 72 20 64 64 64 20 | ccc -- |-pr ddd |
|00002290| 65 65 65 20 2d 73 65 6e | 64 20 2d 74 20 66 66 66 |eee -sen|d -t fff|
|000022a0| 20 0a 0a 61 72 67 68 20 | 76 2e 20 31 2e 31 20 3a | ..argh |v. 1.1 :|
|000022b0| 20 31 35 20 66 6c 61 67 | 73 20 20 31 31 20 63 6f | 15 flag|s 11 co|
|000022c0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 61 72 67 75 6d |mmand li|ne argum|
|000022d0| 65 6e 74 73 0a 6f 74 68 | 65 72 73 20 20 20 20 20 |ents.oth|ers |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 79 70 | | typ|
|000022f0| 65 20 3f 20 20 6d 61 74 | 63 68 20 31 20 63 6f 75 |e ? mat|ch 1 cou|
|00002300| 6e 74 20 33 20 3a 20 20 | 61 61 61 20 62 62 62 20 |nt 3 : |aaa bbb |
|00002310| 63 63 63 0a 66 6c 61 67 | 20 20 20 2d 20 20 20 20 |ccc.flag| - |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 79 70 65 | | type|
|00002330| 20 30 20 20 6d 61 74 63 | 68 20 31 20 63 6f 75 6e | 0 matc|h 1 coun|
|00002340| 74 20 31 20 3a 20 20 2d | 2d 0a 66 6c 61 67 20 20 |t 1 : -|-.flag |
|00002350| 20 62 6f 64 79 20 20 20 | 20 20 20 20 20 20 20 20 | body | |
|00002360| 20 20 74 79 70 65 20 7a | 20 20 6d 61 74 63 68 20 | type z| match |
|00002370| 31 20 63 6f 75 6e 74 20 | 30 20 3a 20 0a 66 6c 61 |1 count |0 : .fla|
|00002380| 67 20 20 20 64 65 66 61 | 75 6c 74 20 20 20 20 20 |g defa|ult |
|00002390| 20 20 20 20 20 74 79 70 | 65 20 31 20 20 6d 61 74 | typ|e 1 mat|
|000023a0| 63 68 20 31 20 63 6f 75 | 6e 74 20 30 20 3a 20 0a |ch 1 cou|nt 0 : .|
|000023b0| 66 6c 61 67 20 20 20 66 | 69 6c 65 20 20 20 20 20 |flag f|ile |
|000023c0| 20 20 20 20 20 20 20 20 | 74 79 70 65 20 7a 20 20 | |type z |
|000023d0| 6d 61 74 63 68 20 31 20 | 63 6f 75 6e 74 20 30 20 |match 1 |count 0 |
|000023e0| 3a 20 0a 66 6c 61 67 20 | 20 20 67 72 6f 75 70 20 |: .flag | group |
|000023f0| 20 20 20 20 20 20 20 20 | 20 20 20 74 79 70 65 20 | | type |
|00002400| 31 20 20 6d 61 74 63 68 | 20 31 20 63 6f 75 6e 74 |1 match| 1 count|
|00002410| 20 30 20 3a 20 0a 66 6c | 61 67 20 20 20 68 65 6c | 0 : .fl|ag hel|
|00002420| 70 20 20 20 20 20 20 20 | 20 20 20 20 20 20 74 79 |p | ty|
|00002430| 70 65 20 30 20 20 6d 61 | 74 63 68 20 31 20 63 6f |pe 0 ma|tch 1 co|
|00002440| 75 6e 74 20 30 20 3a 20 | 0a 66 6c 61 67 20 20 20 |unt 0 : |.flag |
|00002450| 70 72 6f 6d 70 74 20 20 | 20 20 20 20 20 20 20 20 |prompt | |
|00002460| 20 74 79 70 65 20 32 20 | 20 6d 61 74 63 68 20 31 | type 2 | match 1|
|00002470| 20 63 6f 75 6e 74 20 32 | 20 3a 20 20 64 64 64 20 | count 2| : ddd |
|00002480| 65 65 65 0a 66 6c 61 67 | 20 20 20 72 20 20 20 20 |eee.flag| r |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 79 70 65 | | type|
|000024a0| 20 30 20 20 6d 61 74 63 | 68 20 31 20 63 6f 75 6e | 0 matc|h 1 coun|
|000024b0| 74 20 30 20 3a 20 0a 66 | 6c 61 67 20 20 20 73 65 |t 0 : .f|lag se|
|000024c0| 6e 64 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 |nd | t|
|000024d0| 79 70 65 20 30 20 20 6d | 61 74 63 68 20 34 20 63 |ype 0 m|atch 4 c|
|000024e0| 6f 75 6e 74 20 31 20 3a | 20 20 2d 73 65 6e 64 0a |ount 1 :| -send.|
|000024f0| 66 6c 61 67 20 20 20 73 | 65 6e 74 20 20 20 20 20 |flag s|ent |
|00002500| 20 20 20 20 20 20 20 20 | 74 79 70 65 20 30 20 20 | |type 0 |
|00002510| 6d 61 74 63 68 20 34 20 | 63 6f 75 6e 74 20 30 20 |match 4 |count 0 |
|00002520| 3a 20 0a 66 6c 61 67 20 | 20 20 73 65 72 76 61 6e |: .flag | servan|
|00002530| 74 20 20 20 20 20 20 20 | 20 20 20 74 79 70 65 20 |t | type |
|00002540| 30 20 20 6d 61 74 63 68 | 20 35 20 63 6f 75 6e 74 |0 match| 5 count|
|00002550| 20 30 20 3a 20 0a 66 6c | 61 67 20 20 20 73 65 72 | 0 : .fl|ag ser|
|00002560| 76 65 20 20 20 20 20 20 | 20 20 20 20 20 20 74 79 |ve | ty|
|00002570| 70 65 20 30 20 20 6d 61 | 74 63 68 20 35 20 63 6f |pe 0 ma|tch 5 co|
|00002580| 75 6e 74 20 30 20 3a 20 | 0a 66 6c 61 67 20 20 20 |unt 0 : |.flag |
|00002590| 73 65 72 76 69 63 65 20 | 20 20 20 20 20 20 20 20 |service | |
|000025a0| 20 74 79 70 65 20 30 20 | 20 6d 61 74 63 68 20 35 | type 0 | match 5|
|000025b0| 20 63 6f 75 6e 74 20 30 | 20 3a 20 0a 66 6c 61 67 | count 0| : .flag|
|000025c0| 20 20 20 74 72 65 65 20 | 20 20 20 20 20 20 20 20 | tree | |
|000025d0| 20 20 20 20 74 79 70 65 | 20 31 20 20 6d 61 74 63 | type| 1 matc|
|000025e0| 68 20 31 20 63 6f 75 6e | 74 20 31 20 3a 20 20 66 |h 1 coun|t 1 : f|
|000025f0| 66 66 0a 66 6c 61 67 20 | 20 20 76 61 6c 75 65 20 |ff.flag | value |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 74 79 70 65 20 | | type |
|00002610| 32 20 20 6d 61 74 63 68 | 20 31 20 63 6f 75 6e 74 |2 match| 1 count|
|00002620| 20 30 20 3a 20 0a 5c 65 | 6e 64 7b 76 65 72 62 61 | 0 : .\e|nd{verba|
|00002630| 74 69 6d 7d 0a 0a 4e 6f | 74 65 20 74 68 65 20 63 |tim}..No|te the c|
|00002640| 61 6c 63 75 6c 61 74 65 | 64 20 6d 61 74 63 68 20 |alculate|d match |
|00002650| 6c 65 6e 67 74 68 73 2e | 5c 5c 5b 32 65 78 5d 0a |lengths.|\\[2ex].|
|00002660| 0a 54 68 69 73 20 76 65 | 72 73 69 6f 6e 20 6f 66 |.This ve|rsion of|
|00002670| 20 61 72 67 68 20 65 78 | 70 65 63 74 73 20 74 6f | argh ex|pects to|
|00002680| 20 68 61 76 65 20 61 20 | 73 69 6e 67 6c 65 20 63 | have a |single c|
|00002690| 6f 6d 6d 61 6e 64 20 74 | 61 62 6c 65 20 77 68 6f |ommand t|able who|
|000026a0| 73 65 0a 65 6e 74 72 69 | 65 73 20 61 72 65 20 66 |se.entri|es are f|
|000026b0| 6c 61 67 73 20 69 2e 65 | 2e 2c 20 76 61 6c 75 65 |lags i.e|., value|
|000026c0| 73 20 69 6e 74 72 6f 64 | 75 63 65 64 20 6f 6e 20 |s introd|uced on |
|000026d0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|000026e0| 20 77 69 74 68 0a 46 4c | 41 47 43 48 41 52 20 28 | with.FL|AGCHAR (|
|000026f0| 20 60 2d 27 20 29 2e 20 | 5c 5c 0a 0a 0a 5c 65 6e | `-' ). |\\...\en|
|00002700| 64 7b 64 6f 63 75 6d 65 | 6e 74 7d 0a 25 20 72 65 |d{docume|nt}.% re|
|00002710| 6d 65 6d 62 65 72 20 3a | 0a 25 0a 25 20 20 20 20 |member :|.%.% |
|00002720| 20 20 20 5c 64 6f 63 75 | 6d 65 6e 74 73 74 79 6c | \docu|mentstyl|
|00002730| 65 20 7b 61 72 74 69 63 | 6c 65 7d 20 7b 72 65 70 |e {artic|le} {rep|
|00002740| 6f 72 74 7d 20 7b 62 6f | 6f 6b 7d 0a 25 20 20 20 |ort} {bo|ok}.% |
|00002750| 20 20 20 20 5c 73 75 62 | 73 65 63 74 69 6f 6e 20 | \sub|section |
|00002760| 61 6e 64 20 5c 73 75 62 | 73 75 62 73 65 63 74 69 |and \sub|subsecti|
|00002770| 6f 6e 0a 25 20 20 20 20 | 20 20 20 5c 6c 64 6f 74 |on.% | \ldot|
|00002780| 73 5c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s\ | |
|00002790| 20 20 20 60 60 71 75 6f | 74 65 27 27 0a 25 20 20 | ``quo|te''.% |
|000027a0| 20 20 20 20 20 5c 24 20 | 5c 26 20 5c 25 20 5c 23 | \$ |\& \% \#|
|000027b0| 20 5c 7b 20 5c 7d 20 20 | 20 20 20 20 20 7b 5c 65 | \{ \} | {\e|
|000027c0| 6d 20 69 74 61 6c 69 63 | 5c 2f 7d 0a 25 20 20 20 |m italic|\/}.% |
|000027d0| 20 20 20 20 5c 62 65 67 | 69 6e 7b 65 6d 7d 20 2e | \beg|in{em} .|
|000027e0| 2e 2e 20 20 0a 25 20 20 | 20 20 20 20 20 20 20 20 |.. .% | |
|000027f0| 20 20 20 20 20 7b 5c 65 | 6d 20 52 6f 6d 61 6e 7d | {\e|m Roman}|
|00002800| 20 0a 25 20 20 20 20 20 | 20 20 5c 65 6e 64 7b 65 | .% | \end{e|
|00002810| 6d 7d 0a 25 20 20 20 20 | 20 20 20 60 60 4d 72 2e |m}.% | ``Mr.|
|00002820| 7e 4a 6f 6e 65 73 27 27 | 0a 25 20 20 20 20 20 20 |~Jones''|.% |
|00002830| 20 5c 6d 62 6f 78 7b 5c | 65 6d 20 69 74 65 6d 6e | \mbox{\|em itemn|
|00002840| 75 6d 5c 2f 7d 20 0a 25 | 20 20 20 20 20 20 20 5c |um\/} .%| \|
|00002850| 66 6f 6f 74 6e 6f 74 65 | 7b 54 68 69 73 20 69 73 |footnote|{This is|
|00002860| 20 61 6e 20 65 78 61 6d | 70 6c 65 20 6f 66 20 61 | an exam|ple of a|
|00002870| 20 66 6f 6f 74 6e 6f 74 | 65 2e 7d 0a 25 20 20 20 | footnot|e.}.% |
|00002880| 20 20 20 20 5c 28 20 61 | 5f 7b 31 7d 20 3e 20 78 | \( a|_{1} > x|
|00002890| 5e 7b 32 6e 7d 20 2f 20 | 79 5e 7b 32 6e 7d 20 3e |^{2n} / |y^{2n} >|
|000028a0| 20 78 27 20 5c 29 20 20 | 20 20 20 20 20 20 20 20 | x' \) | |
|000028b0| 20 20 20 20 24 78 24 0a | 25 20 20 20 20 20 20 20 | $x$.|% |
|000028c0| 5c 5b 20 20 78 27 20 2b | 20 79 5e 7b 32 7d 20 3d |\[ x' +| y^{2} =|
|000028d0| 20 7a 5f 7b 69 7d 5e 7b | 32 7d 5c 5d 0a 25 20 20 | z_{i}^{|2}\].% |
|000028e0| 20 20 20 20 20 5c 62 65 | 67 69 6e 7b 71 75 6f 74 | \be|gin{quot|
|000028f0| 65 7d 0a 25 20 20 20 20 | 20 20 20 5c 62 65 67 69 |e}.% | \begi|
|00002900| 6e 7b 71 75 6f 74 61 74 | 69 6f 6e 7d 0a 25 20 20 |n{quotat|ion}.% |
|00002910| 20 20 20 20 20 5c 62 65 | 67 69 6e 7b 69 74 65 6d | \be|gin{item|
|00002920| 69 7a 65 7d 0a 25 20 20 | 20 20 20 20 20 20 20 20 |ize}.% | |
|00002930| 20 20 20 20 20 5c 69 74 | 65 6d 20 20 54 68 69 73 | \it|em This|
|00002940| 20 69 73 20 74 68 65 20 | 66 69 72 73 74 20 69 74 | is the |first it|
|00002950| 65 6d 20 6f 66 20 61 6e | 20 69 74 65 6d 69 7a 65 |em of an| itemize|
|00002960| 64 20 6c 69 73 74 2e 0a | 25 20 20 20 20 20 20 20 |d list..|% |
|00002970| 20 20 20 20 20 20 20 20 | 5c 62 65 67 69 6e 7b 65 | |\begin{e|
|00002980| 6e 75 6d 65 72 61 74 65 | 7d 0a 25 20 20 20 20 20 |numerate|}.% |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 20 20 5c 69 74 65 6d 20 | 54 68 69 73 20 69 73 20 | \item |This is |
|000029b0| 74 68 65 20 66 69 72 73 | 74 20 2e 2e 2e 0a 25 20 |the firs|t ....% |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 65 | | \e|
|000029d0| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 25 20 |nd{enume|rate}.% |
|000029e0| 20 20 20 20 20 20 5c 65 | 6e 64 7b 69 74 65 6d 69 | \e|nd{itemi|
|000029f0| 7a 65 7d 0a 25 20 20 20 | 20 20 20 20 5c 65 6e 64 |ze}.% | \end|
|00002a00| 7b 64 6f 63 75 6d 65 6e | 74 7d 20 20 20 20 20 20 |{documen|t} |
|00002a10| 20 20 20 20 20 20 20 25 | 20 45 6e 64 20 6f 66 20 | %| End of |
|00002a20| 64 6f 63 75 6d 65 6e 74 | 2e 0a |document|.. |
+--------+-------------------------+-------------------------+--------+--------+